package game.ui.controls
{
	import com.greensock.*;
	import com.greensock.easing.*;
	import engine.asset.*;
	import engine.core.*;
	import flash.display.*;
	import flash.events.*;
	import flash.filters.*;
	import flash.text.*;
	import game.actor.*;
	import game.messages.gamedata.*;
	import game.network.*;
	import game.scene.*;
	import game.ui.core.*;
	//import game.ui.utils.*;
	
	public class RxSkillBarSlot extends RxButtonBase
	{
		private var m_iconSize:int = 54;
		private var m_assignMode:Boolean = false;
		private var m_totalCooldown:Number;
		private var m_countdown:Number;
		private var m_location:uint;
		private var m_assignCallback:Function;
		private var m_cooldownDisplay:RxCooldownDisplay;
		private var m_assignButton:RxButtonBase;
		private var m_shortcutBackground:RxBitmap;
		private var m_isSkillType:Boolean;
		private var m_overlay:Shape;
		private var m_quantityLabel:RxTextLabel;
		private var m_cooldownClass:String;
		private var m_actionName:String;
		private var m_abilityName:String;
		private var m_tooltipEnabled:Boolean = true;
		private var m_slotContainer:Sprite;
		private var m_animatingSelection:Boolean = false;
		public static const LOCATION_SKILLS_PANEL:uint = 0;
		public static const LOCATION_ACTION_BAR:uint = 1;
		public static const LOCATION_ASSIGN_PANEL:uint = 2;
		private static var m_desaturationFilter:ColorMatrixFilter;
		private static var m_itemTooltip:RxEquipmentTooltip;
		private static var m_skillTooltip:RxSkillPanelTooltip;
		
		public function RxSkillBarSlot(param1:uint = 0, param2:Boolean = true)
		{
			if (m_desaturationFilter == null)
			{
				//m_desaturationFilter = RxColorMatrixUtil.CreateSaturationFilter(0.4);
			}
			this.m_location = param1;
			this.m_isSkillType = param2;
			//SetCursorPriority(RxUICursorPriority.LOW);
			if (this.m_isSkillType)
			{
				this.m_iconSize = 54;
				m_width = 70;
				m_height = param1 == LOCATION_ASSIGN_PANEL ? (70) : (83);
			}
			else
			{
				this.m_iconSize = 41;
				m_width = 58;
				m_height = param1 == LOCATION_ASSIGN_PANEL ? (58) : (83);
			}
			//this.CreateChildren();
		}
	}
}